import Vue from 'vue'
import VueRouter from 'vue-router'
import indexView from '@/views/indexView.vue'
import login from '@/views/login.vue'
import upload from '@/views/upload.vue'
import video from '@/views/video.vue'
import history from '@/views/history.vue'
import collect from '@/views/collect.vue'
import message from '@/views/message.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: indexView
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/upload',
    name: 'upload',
    component: upload
  },
  {
    path: '/video',
    name: 'video',
    component: video
  },
  {
    path: '/history',
    name: 'history',
    component: history
  },
  {
    path: '/collect',
    name: 'collect',
    component: collect
  },
  {
    path: '/message',
    name: 'message',
    component: message
  }
]

const router = new VueRouter({
  routes
})

export default router
